package com.sfc.spiderweb.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sfc.spiderweb.serializer.AmazonViolationDataSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("amazon获取违规数据返回实体")
public class AmazonViolationDataVo {

    @ApiModelProperty("自增id")
    private Integer id;
    @ApiModelProperty("账号")
    private String account;
    @ApiModelProperty("下载日期")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date downDate;
    @ApiModelProperty("类型:涉嫌侵犯知识产权, 收到的知识产权投诉, 受限商品")
    @JsonSerialize(using= AmazonViolationDataSerialize.class)
    private String type;
    @ApiModelProperty("状态：1有违规数据，0无违规数据")
    private Integer state;
    @ApiModelProperty("原因")
    private String reason;
    @ApiModelProperty("违规日期")
    private String date;
    @ApiModelProperty("哪些商品会受到影响")
    private String affected;
    @ApiModelProperty("采取的操作")
    private String actionTaken;
    @ApiModelProperty("后续步骤")
    private String nextSteps;

}
